package com.bdit.ydcb.model;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by shengpj on 2017/7/4.
 */

public class Page<T> extends ServerResponse implements Serializable {
    private static final long serialVersionUID = 5213230387175987824L;
    private int pageNo;
    private int pageSize;
    private long count;
    private Map<String,Object> extraData;
    private T list;

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public T getList() {
        return list;
    }

    public void setData(T list) {
        this.list = list;
    }

    public Map<String, Object> getExtraData() {
        return extraData;
    }

    public void setExtraData(Map<String, Object> extraData) {
        this.extraData = extraData;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", count=" + count +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", list=" + list +
                '}';
    }
}
